﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// PB_ProductionOrder
    /// </summary>
    [Table("PB_ProductionOrder")]
    public partial class PB_ProductionOrder
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public String Code { get; set; }
        /// <summary>
        /// <summary>
        /// 设计清单ID
        /// </summary>
        public String DesignId { get; set; }

        /// 生产订单名称
        /// </summary>
        public String POName { get; set; }
      
    
        public String Type { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime? BeginDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime? EndDate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 组织ID
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public String BatchNumber { get; set; }

        /// <summary>
        /// 任务单状态：0=无源，1=有源
        /// </summary>
        public Boolean State { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 状态：0-待审核；1-已审核；2-已完成；3-作废
        /// </summary>
        public Int32? Status { get; set; }

        /// <summary>
        /// 是否为新生产
        /// </summary>
        public Boolean IsNew { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 任务类型：0-翻新；1-新制; 2-非生产;3-维修改制;4-组装
        /// </summary>
        public int IsRefurbishment { get; set; }
        /// <summary>
        /// 任务单状态
        /// </summary>
        public Int32? Taskstatus { get; set; }

    }
}